/* tslint:disable */
/* eslint-disable */

import React, { SVGAttributes, FunctionComponent } from 'react';
import IconToday from './IconToday';
import IconNews from './IconNews';
import IconQuestion from './IconQuestion';
import IconMoney from './IconMoney';
import IconTanhao from './IconTanhao';
import IconOrder from './IconOrder';
import IconTeam from './IconTeam';
import IconTeam1 from './IconTeam1';
import IconShare from './IconShare';
import IconFly from './IconFly';
import IconRefresh from './IconRefresh';
import IconTransform from './IconTransform';
import IconIndex from './IconIndex';
import IconInvest from './IconInvest';
import IconUser from './IconUser';
import IconQuotes from './IconQuotes';
import IconFlow from './IconFlow';
export { default as IconToday } from './IconToday';
export { default as IconNews } from './IconNews';
export { default as IconQuestion } from './IconQuestion';
export { default as IconMoney } from './IconMoney';
export { default as IconTanhao } from './IconTanhao';
export { default as IconOrder } from './IconOrder';
export { default as IconTeam } from './IconTeam';
export { default as IconTeam1 } from './IconTeam1';
export { default as IconShare } from './IconShare';
export { default as IconFly } from './IconFly';
export { default as IconRefresh } from './IconRefresh';
export { default as IconTransform } from './IconTransform';
export { default as IconIndex } from './IconIndex';
export { default as IconInvest } from './IconInvest';
export { default as IconUser } from './IconUser';
export { default as IconQuotes } from './IconQuotes';
export { default as IconFlow } from './IconFlow';

export type IconNames = 'today' | 'news' | 'question' | 'money' | 'tanhao' | 'order' | 'team' | 'team1' | 'share' | 'fly' | 'refresh' | 'transform' | 'index' | 'invest' | 'user' | 'quotes' | 'flow';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  name: IconNames;
  size?: number;
  color?: string | string[];
}

const IconFont: FunctionComponent<Props> = ({ name, ...rest }) => {
  switch (name) {
    case 'today':
      return <IconToday {...rest} />;
    case 'news':
      return <IconNews {...rest} />;
    case 'question':
      return <IconQuestion {...rest} />;
    case 'money':
      return <IconMoney {...rest} />;
    case 'tanhao':
      return <IconTanhao {...rest} />;
    case 'order':
      return <IconOrder {...rest} />;
    case 'team':
      return <IconTeam {...rest} />;
    case 'team1':
      return <IconTeam1 {...rest} />;
    case 'share':
      return <IconShare {...rest} />;
    case 'fly':
      return <IconFly {...rest} />;
    case 'refresh':
      return <IconRefresh {...rest} />;
    case 'transform':
      return <IconTransform {...rest} />;
    case 'index':
      return <IconIndex {...rest} />;
    case 'invest':
      return <IconInvest {...rest} />;
    case 'user':
      return <IconUser {...rest} />;
    case 'quotes':
      return <IconQuotes {...rest} />;
    case 'flow':
      return <IconFlow {...rest} />;

  }

  return null;
};

export default IconFont;
